package com.yixiu.javabase.modules.keyword.staticfinal;




/**
 * 参考：https://www.cnblogs.com/qducn/p/6140492.html
 *
 */
public class StaticFinalTest {

    public static void main(String[] args) {
        System.out.println("First Object:");
        System.out.println(new WithFinalFields());
        System.out.println("Second Object:");
        System.out.println(new WithFinalFields());



    }

    /* 结果如下：
First Object:
wff= SelfCounter: 2, wffs= SelfCounter: 0 wffs2 = SelfCounter: 1
Second Object:
wff= SelfCounter: 3, wffs= SelfCounter: 0 wffs2 = SelfCounter: 1
     */


}
